package cn.psvmc.cxzapi.model.customer;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 客户表
 * @Author auto
 * @Date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_customer")
public class TCustomer implements Serializable {

    @Serial
    private static final long serialVersionUID = -894920177619396617L;
    //客户表
    @TableId(value = "customerid", type = IdType.AUTO)
    private Integer customerid;

    //对应的支付宝用户id
    @TableField("userid")
    private String userid;

    //支付宝唯一用户标识
    @TableField("openid")
    private String openid;

    //姓名
    @TableField("name")
    private String name;

    //手机号
    @TableField("phone")
    private String phone;

    //真实姓名
    @TableField("real_name")
    private String realName;

    //身份证号码
    @TableField("id_number")
    private String idNumber;

    //头像
    @TableField("avatar")
    private String avatar;

    //是否生成风控报告（0未生成 1已生成）
    @TableField("control_report")
    private Integer controlReport;

    //风控报告内容
    @TableField("report_content")
    private String reportContent;

    //风控报告生成时间
    @TableField("report_time")
    private LocalDateTime reportTime;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //操作人id
    @TableField(value = "updateid", fill = FieldFill.INSERT_UPDATE)
    private Integer updateid;

    //操作时间
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    //版本号
    @TableField("rversion")
    @Version
    private Integer rversion;
    
    //签章图片
    @TableField("customer_seal")
    private String customerseal;


    @TableField(exist = false)
    private Integer day;

    //场景
    private String scene;

    //支付宝业务卡号
    @TableField("biz_card_no")
    private String bizCardNo;

    //会员卡昵称
    @TableField("card_nickname")
    private String cardNickname;

    //会员卡手机号
    @TableField("card_phone")
    private String cardPhone;


}
